package com.management.springboot.dao;

import com.management.springboot.bean.Customers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

/**
 * @author scy
 * @Description
 * @date 2021/6/12-16:21
 */
@Mapper
public interface CustomerDao {
    @Select("select id,name from customers where id=#{id}")
   @ResultType(value=Customers.class)
    public Customers query(Integer id);

}
